﻿//------------------------------------------------------------------------------ 
// <copyright file="JQueryManager.cs" company="Fm Computer">
//     Copyright (c) Fm Computer di Menatti Fulvia.  All rights reserved.
// </copyright>
//----------------------------------------------------------------------------- 
#region Scripts
[assembly: System.Web.UI.WebResource("FmjQuery.Scripts.jquery.js", "text/javascript")]
[assembly: System.Web.UI.WebResource("FmjQuery.Scripts.Types.js", "text/javascript")]
[assembly: System.Web.UI.WebResource("FmjQuery.Scripts.jquery.extend.js", "text/javascript")]
[assembly: System.Web.UI.WebResource("FmjQuery.Scripts.jquery.coloranimate.js", "text/javascript")]
[assembly: System.Web.UI.WebResource("FmjQuery.Scripts.jquery.bigmask.js", "text/javascript")]
[assembly: System.Web.UI.WebResource("FmjQuery.Scripts.jquery.Validators.js", "text/javascript")]
[assembly: System.Web.UI.WebResource("FmjQuery.Scripts.json2.pack.js", "text/javascript")]
[assembly: System.Web.UI.WebResource("FmjQuery.Scripts.jquery.ajaxdotnet.3.pack.js", "text/javascript")]
[assembly: System.Web.UI.WebResource("FmjQuery.Scripts.jquery.modalPopUp.js", "text/javascript")]
[assembly: System.Web.UI.WebResource("FmjQuery.Scripts.jquery.alert.js", "text/javascript")]
[assembly: System.Web.UI.WebResource("FmjQuery.Scripts.jquery.autocomplete.js", "text/javascript")]
[assembly: System.Web.UI.WebResource("FmjQuery.Scripts.jquery.innerfade.pack.js", "text/javascript")]
[assembly: System.Web.UI.WebResource("FmjQuery.Scripts.jquery.datepicker.js", "text/javascript")]
[assembly: System.Web.UI.WebResource("FmjQuery.Scripts.jquery.ui.core.js", "text/javascript")]
[assembly: System.Web.UI.WebResource("FmjQuery.Scripts.jquery.ui.dialog.js", "text/javascript")]
[assembly: System.Web.UI.WebResource("FmjQuery.Scripts.jquery.ui.draggable.js", "text/javascript")]
[assembly: System.Web.UI.WebResource("FmjQuery.Scripts.jquery.ui.droppable.js", "text/javascript")]
[assembly: System.Web.UI.WebResource("FmjQuery.Scripts.jquery.ui.tabs.js", "text/javascript")]
[assembly: System.Web.UI.WebResource("FmjQuery.Scripts.jquery.ui.accordion.js", "text/javascript")]
[assembly: System.Web.UI.WebResource("FmjQuery.Scripts.jquery.ui.resizable.js", "text/javascript")]
[assembly: System.Web.UI.WebResource("FmjQuery.Scripts.jquery.bgiframe.js", "text/javascript")]
[assembly: System.Web.UI.WebResource("FmjQuery.Effects.jquery.easing.js", "text/javascript")]
#endregion
#region Css Themes
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.ui.accordion.css", "text/css")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.ui.core.css", "text/css")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.ui.datepicker.css", "text/css")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.ui.dialog.css", "text/css")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.ui.progressbar.css", "text/css")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.ui.resizable.css", "text/css")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.ui.tabs.css", "text/css")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.Base.ui.theme.css", "text/css")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.BlackTie.ui.theme.css", "text/css")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.Blitzer.ui.theme.css", "text/css")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.Cupertino.ui.theme.css", "text/css")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.Darkness.ui.theme.css", "text/css")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.DotLuv.ui.theme.css", "text/css")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.ExciteBike.ui.theme.css", "text/css")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.Hotsneaks.ui.theme.css", "text/css")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.Humanity.ui.theme.css", "text/css")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.Lightness.ui.theme.css", "text/css")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.MintChoc.ui.theme.css", "text/css")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.Redmond.ui.theme.css", "text/css")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.Smoothness.ui.theme.css", "text/css")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.SouthStreet.ui.theme.css", "text/css")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.Start.ui.theme.css", "text/css")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.SwankyPurse.ui.theme.css", "text/css")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.Tronstatic.ui.theme.css", "text/css")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.Vader.ui.theme.css", "text/css")]
#endregion
#region Image Themes
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.Base.images.flat.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.Base.images.flat2.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.Base.images.glass5.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.Base.images.glass6.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.Base.images.glass65.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.Base.images.glass9.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.Base.images.hight100.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.Base.images.hight75.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.Base.images.ico222.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.Base.images.ico228.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.Base.images.icoffd.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.Base.images.icofff.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.BlackTie.images.dia18.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.BlackTie.images.dia20.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.BlackTie.images.flat.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.BlackTie.images.glass5.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.BlackTie.images.glass6.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.BlackTie.images.glass65.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.BlackTie.images.glass9.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.BlackTie.images.hight100.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.BlackTie.images.hight75.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.BlackTie.images.ico222.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.BlackTie.images.ico228.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.BlackTie.images.icoef8.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.BlackTie.images.icofcd.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.BlackTie.images.icoffd.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.BlackTie.images.icofff.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.Blitzer.images.dia18.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.Blitzer.images.dia20.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.Blitzer.images.flat.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.Blitzer.images.flat2.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.Blitzer.images.glass5.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.Blitzer.images.glass6.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.Blitzer.images.glass65.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.Blitzer.images.hight100.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.Blitzer.images.hight75.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.Blitzer.images.ico222.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.Blitzer.images.ico228.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.Blitzer.images.icofff.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.Cupertino.images.dia18.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.Cupertino.images.dia20.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.Cupertino.images.flat.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.Cupertino.images.flat2.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.Cupertino.images.glass5.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.Cupertino.images.glass6.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.Cupertino.images.glass65.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.Cupertino.images.glass9.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.Cupertino.images.hight100.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.Cupertino.images.hight75.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.Cupertino.images.ico222.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.Cupertino.images.ico228.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.Cupertino.images.icoef8.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.Cupertino.images.icofcd.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.Cupertino.images.icoffd.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.Cupertino.images.icofff.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.Darkness.images.dia18.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.Darkness.images.dia20.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.Darkness.images.flat.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.Darkness.images.flat2.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.Darkness.images.glass5.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.Darkness.images.glass6.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.Darkness.images.glass65.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.Darkness.images.Gloss.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.Darkness.images.hight100.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.Darkness.images.hight75.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.Darkness.images.ico222.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.Darkness.images.ico228.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.Darkness.images.icoffd.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.Darkness.images.icofff.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.DotLuv.images.dia18.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.DotLuv.images.flat.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.DotLuv.images.flat2.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.DotLuv.images.glass5.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.DotLuv.images.glass6.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.DotLuv.images.glass65.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.DotLuv.images.glass9.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.DotLuv.images.Gloss.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.DotLuv.images.ico222.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.DotLuv.images.ico228.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.DotLuv.images.icoffd.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.DotLuv.images.icofff.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.ExciteBike.images.dia18.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.ExciteBike.images.dia20.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.ExciteBike.images.flat.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.ExciteBike.images.flat2.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.ExciteBike.images.glass5.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.ExciteBike.images.Gloss.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.ExciteBike.images.hight100.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.ExciteBike.images.hight75.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.ExciteBike.images.ico222.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.ExciteBike.images.ico228.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.ExciteBike.images.icofcd.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.ExciteBike.images.icoffd.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.ExciteBike.images.icofff.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.Hotsneaks.images.dia18.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.Hotsneaks.images.dia20.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.Hotsneaks.images.flat.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.Hotsneaks.images.flat2.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.Hotsneaks.images.glass5.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.Hotsneaks.images.glass6.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.Hotsneaks.images.glass65.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.Hotsneaks.images.glass9.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.Hotsneaks.images.Gloss.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.Hotsneaks.images.ico222.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.Hotsneaks.images.ico228.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.Hotsneaks.images.icoef8.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.Hotsneaks.images.icofcd.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.Hotsneaks.images.icoffd.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.Hotsneaks.images.icofff.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.Humanity.images.flat.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.Humanity.images.flat2.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.Humanity.images.glass5.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.Humanity.images.glass6.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.Humanity.images.glass65.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.Humanity.images.glass9.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.Humanity.images.hight100.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.Humanity.images.hight75.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.Humanity.images.ico222.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.Humanity.images.ico228.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.Humanity.images.icoef8.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.Humanity.images.icofcd.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.Humanity.images.icoffd.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.Humanity.images.icofff.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.Lightness.images.dia18.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.Lightness.images.dia20.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.Lightness.images.flat.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.Lightness.images.glass5.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.Lightness.images.glass6.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.Lightness.images.glass65.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.Lightness.images.Gloss.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.Lightness.images.hight100.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.Lightness.images.hight75.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.Lightness.images.ico222.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.Lightness.images.ico228.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.Lightness.images.icoef8.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.Lightness.images.icoffd.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.Lightness.images.icofff.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.MintChoc.images.dia18.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.MintChoc.images.flat.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.MintChoc.images.glass5.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.MintChoc.images.glass6.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.MintChoc.images.glass65.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.MintChoc.images.Gloss.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.MintChoc.images.hight100.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.MintChoc.images.hight75.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.MintChoc.images.ico222.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.MintChoc.images.ico228.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.MintChoc.images.icoef8.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.MintChoc.images.icofcd.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.MintChoc.images.icoffd.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.MintChoc.images.icofff.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.Redmond.images.dia18.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.Redmond.images.dia20.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.Redmond.images.flat.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.Redmond.images.flat2.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.Redmond.images.glass5.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.Redmond.images.glass6.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.Redmond.images.glass65.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.Redmond.images.Gloss.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.Redmond.images.hight100.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.Redmond.images.hight75.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.Redmond.images.ico222.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.Redmond.images.ico228.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.Redmond.images.icoef8.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.Redmond.images.icoffd.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.Redmond.images.icofff.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.Smoothness.images.dia18.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.Smoothness.images.dia20.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.Smoothness.images.flat.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.Smoothness.images.flat2.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.Smoothness.images.glass5.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.Smoothness.images.glass6.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.Smoothness.images.glass65.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.Smoothness.images.hight75.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.Smoothness.images.ico222.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.Smoothness.images.ico228.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.Smoothness.images.icoef8.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.Smoothness.images.icoffd.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.Smoothness.images.icofff.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.SouthStreet.images.dia18.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.SouthStreet.images.dia20.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.SouthStreet.images.flat.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.SouthStreet.images.glass5.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.SouthStreet.images.glass6.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.SouthStreet.images.glass9.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.SouthStreet.images.Gloss.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.SouthStreet.images.hight100.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.SouthStreet.images.hight75.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.SouthStreet.images.ico222.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.SouthStreet.images.ico228.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.SouthStreet.images.icoef8.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.SouthStreet.images.icofcd.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.SouthStreet.images.icoffd.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.SouthStreet.images.icofff.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.Start.images.dia18.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.Start.images.dia20.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.Start.images.flat.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.Start.images.flat2.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.Start.images.glass5.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.Start.images.glass6.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.Start.images.glass65.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.Start.images.Gloss.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.Start.images.hight100.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.Start.images.hight75.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.Start.images.ico222.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.Start.images.ico228.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.Start.images.icoef8.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.Start.images.icofcd.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.Start.images.icoffd.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.Start.images.icofff.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.SwankyPurse.images.dia18.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.SwankyPurse.images.dia20.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.SwankyPurse.images.flat.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.SwankyPurse.images.glass5.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.SwankyPurse.images.glass6.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.SwankyPurse.images.glass65.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.SwankyPurse.images.glass9.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.SwankyPurse.images.Gloss.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.SwankyPurse.images.hight100.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.SwankyPurse.images.ico222.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.SwankyPurse.images.ico228.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.SwankyPurse.images.icoef8.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.SwankyPurse.images.icofcd.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.SwankyPurse.images.icoffd.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.SwankyPurse.images.icofff.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.Tronstatic.images.dia18.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.Tronstatic.images.dia20.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.Tronstatic.images.flat.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.Tronstatic.images.flat2.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.Tronstatic.images.glass5.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.Tronstatic.images.glass6.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.Tronstatic.images.glass65.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.Tronstatic.images.glass9.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.Tronstatic.images.Gloss.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.Tronstatic.images.ico222.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.Tronstatic.images.ico228.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.Tronstatic.images.icoef8.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.Tronstatic.images.icofcd.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.Tronstatic.images.icoffd.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.Tronstatic.images.icofff.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.Vader.images.dia18.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.Vader.images.dia20.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.Vader.images.flat.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.Vader.images.flat2.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.Vader.images.glass65.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.Vader.images.glass9.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.Vader.images.Gloss.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.Vader.images.hight100.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.Vader.images.hight75.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.Vader.images.ico222.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.Vader.images.ico228.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.Vader.images.icoef8.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.Vader.images.icofcd.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.Vader.images.icoffd.png", "image/png")]
[assembly: System.Web.UI.WebResource("FmjQuery.Themes.Vader.images.icofff.png", "image/png")]
#endregion

namespace FmjQuery
{
    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Linq;
    using System.Text;
    using System.Web.UI;
    using System.Web.UI.WebControls;

    /// <summary>
    /// Manage for jQuery Controls
    /// </summary>
    [ToolboxData("<{0}:JQueryManager runat=server></{0}:JQueryManager>")]
    [NonVisualControl]
    public class JQueryManager : WebControl, IjQueryManager, IManageBaseScript, IManageEffects
    {
        #region Fields
        /// <summary>
        /// List of behavior id
        /// </summary>
        private readonly List<KeyValuePair<string, string>> tbehaviors = new List<KeyValuePair<string, string>>();

        /// <summary>
        /// List of resources
        /// </summary>
        private JWebSources tresources;

        /// <summary>
        /// Indicates if include extend framework
        /// </summary>
        private bool textend;

        /// <summary>
        /// Indicates if include dotnetservice
        /// </summary>
        private bool tdotNetService;

        /// <summary>
        /// Indicates if include json
        /// </summary>
        private bool tjson;

        /// <summary>
        /// Indicates if include modalpopup
        /// </summary>
        private bool tmodal;

        /// <summary>
        /// Indicates if include autocomplete
        /// </summary>
        private bool tautocomplete;

        /// <summary>
        /// Indicates if include innerFade
        /// </summary>
        private bool tinnerfade;

        /// <summary>
        /// Indicates if include draggable
        /// </summary>
        private bool tdraggable;

        /// <summary>
        /// Indicates if include alert
        /// </summary>
        private bool talert;

        /// <summary>
        /// Indicates if include mask
        /// </summary>
        private bool tmask;

        /// <summary>
        /// Indicates if include validator
        /// </summary>
        private bool tvalidator;

        /// <summary>
        /// Indicates if include Ui framework
        /// </summary>
        private bool tui;

        /// <summary>
        /// Indicates if include Ui tabs
        /// </summary>
        private bool ttab;

        /// <summary>
        /// Indicates if include Ui Accordion
        /// </summary>
        private bool tacco;

        /// <summary>
        /// Indicates if include easing effect
        /// </summary>
        private bool teas;

        /// <summary>
        /// Indicates if include datepicker
        /// </summary>
        private bool tdate;

        /// <summary>
        /// Indicates if include bgFrame
        /// </summary>
        private bool tbg;

        /// <summary>
        /// Indicates if include resizable
        /// </summary>
        private bool tres;

        /// <summary>
        /// Indicates if include dialog
        /// </summary>
        private bool tdia;

        /// <summary>
        /// Indicates if include droppable
        /// </summary>
        private bool tdrop;

        /// <summary>
        /// Theme for jquery ui component
        /// </summary>
        private Themes ttheme = Themes.None;
        #endregion

        #region Property IManageBaseScript
        /// <summary>
        /// Gets a value indicating whether insert into page jQuery FrameWork
        /// </summary>
        public bool FrameWork
        {
            get
            {
                return true;
            }
        }

        /// <summary>
        /// Gets or sets a value indicating whether insert into page jQuery UI FrameWork
        /// </summary>
        public bool UiFrameWork
        {
            get
            {
                return this.tui;
            }

            set
            {
                if (!value)
                {
                    return;
                }

                this.tui = true;
                this.LoadBaseReference(Properties.Settings.Default.jQuery_UI_Name, Properties.Settings.Default.jQuery_UI_Url);
            }
        }

        /// <summary>
        /// Gets or sets a value indicating whether insert into page jQuery UI Tabs
        /// </summary>
        public bool Tab
        {
            get
            {
                return this.ttab;
            }

            set
            {
                if (!value)
                {
                    return;
                }

                if (!this.UiFrameWork)
                {
                    this.UiFrameWork = true;
                }

                this.ttab = true;
                this.LoadBaseReference(Properties.Settings.Default.jQuery_Tab_Name, Properties.Settings.Default.jQuery_Tab_Url);
            }
        }

        /// <summary>
        /// Gets or sets a value indicating whether insert into page jQuery UI Accordion
        /// </summary>
        public bool Accordion
        {
            get
            {
                return this.tacco;
            }

            set
            {
                if (!value)
                {
                    return;
                }

                if (!this.UiFrameWork)
                {
                    this.UiFrameWork = true;
                }

                this.tacco = true;
                this.LoadBaseReference(Properties.Settings.Default.jQuery_Accordion_Name, Properties.Settings.Default.jQuery_Accordion_Url);
            }
        }

        /// <summary>
        /// Gets or sets a value indicating whether insert into page jQuery Extension FrameWork
        /// </summary>
        [DefaultValue(false)]
        public bool FrameWorkExtend
        {
            get
            {
                return this.textend;
            }

            set
            {
                if (!value)
                {
                    return;
                }

                this.textend = true;
                this.LoadBaseReference(Properties.Settings.Default.jQuery_Extend_Name, Properties.Settings.Default.jQuery_Extend_Url);
            }
        }

        /// <summary>
        /// Gets or sets a value indicating whether insert into page DotNetService call
        /// </summary>
        [DefaultValue(false)]
        public bool DotNetService
        {
            get
            {
                return this.tdotNetService;
            }

            set
            {
                if (!value && this.WebResources.Count(s => s.Type == JSourceType.webService) > 0)
                {
                    return;
                }

                if (!this.JSon)
                {
                    this.JSon = true;
                }

                this.tdotNetService = true;
                this.LoadBaseReference(Properties.Settings.Default.jQuery_DotNet_Name, Properties.Settings.Default.jQuery_DotNet_Url);
            }
        }

        /// <summary>
        /// Gets or sets a value indicating whether insert into page JSon
        /// </summary>
        [DefaultValue(false)]
        public bool JSon
        {
            get
            {
                return this.tjson;
            }

            set
            {
                if (this.tjson && !this.DotNetService)
                {
                    return;
                }

                this.LoadBaseReference(Properties.Settings.Default.jQuery_Json_Name, Properties.Settings.Default.jQuery_Json_Url);
                this.tjson = value;
            }
        }

        /// <summary>
        /// Gets or sets a value indicating whether insert into page ModalPopUp
        /// </summary>
        [DefaultValue(false)]
        public bool ModalPopUp
        {
            get
            {
                return this.tmodal;
            }

            set
            {
                if (!value)
                {
                    return;
                }

                if (!this.FrameWorkExtend)
                {
                    this.FrameWorkExtend = true;
                }

                this.tmodal = true;
                this.LoadBaseReference(Properties.Settings.Default.jQuery_ModalPopUp_Name, Properties.Settings.Default.jQuery_ModalPopUp_Url);
            }
        }

        /// <summary>
        /// Gets or sets a value indicating whether insert into page AutoComplate
        /// </summary>
        [DefaultValue(false)]
        public bool AutoComplete
        {
            get
            {
                return this.tautocomplete;
            }

            set
            {
                if (!value)
                {
                    return;
                }

                this.tautocomplete = true;
                this.LoadBaseReference(Properties.Settings.Default.jQuery_AutoComplete_Name, Properties.Settings.Default.jQuery_AutoComplete_Url);
            }
        }

        /// <summary>
        /// Gets or sets a value indicating whether insert into page innerFade
        /// </summary>
        public bool InnerFade
        {
            get
            {
                return this.tinnerfade;
            }

            set
            {
                if (!value)
                {
                    return;
                }

                this.tinnerfade = true;
                this.LoadBaseReference(Properties.Settings.Default.jQuery_InnerFade_Name, Properties.Settings.Default.jQuery_InnerFade_Url);
            }
        }

        /// <summary>
        /// Gets or sets a value indicating whether insert into page Draggable
        /// </summary>
        public bool Draggable
        {
            get
            {
                return this.tdraggable;
            }

            set
            {
                if (!value)
                {
                    return;
                }

                if (!this.UiFrameWork)
                {
                    this.UiFrameWork = true;
                }

                this.tdraggable = true;
                this.LoadBaseReference(Properties.Settings.Default.jQuery_Draggable_Name, Properties.Settings.Default.jQuery_Draggable_Url);
            }
        }

        /// <summary>
        /// Gets or sets a value indicating whether insert into page Alert
        /// </summary>
        public bool Alert
        {
            get
            {
                return this.talert;
            }

            set
            {
                if (!value)
                {
                    return;
                }

                if (!this.Draggable)
                {
                    this.Draggable = true;
                }

                this.talert = true;
                this.LoadBaseReference(Properties.Settings.Default.jQuery_Alert_Name, Properties.Settings.Default.jQuery_Alert_Url);
            }
        }

        /// <summary>
        /// Gets or sets a value indicating whether insert into page Edit Mask
        /// </summary>
        public bool EditMask
        {
            get
            {
                return this.tmask;
            }

            set
            {
                if (!value)
                {
                    return;
                }

                if (!this.FrameWorkExtend)
                {
                    this.FrameWorkExtend = true;
                }

                this.tmask = true;
                this.LoadBaseReference(Properties.Settings.Default.jQuery_Mask_Name, Properties.Settings.Default.jQuery_Mask_Url);
            }
        }

        /// <summary>
        /// Gets or sets a value indicating whether insert into page Validator
        /// </summary>
        public bool Validator
        {
            get
            {
                return this.tvalidator;
            }

            set
            {
                if (!value)
                {
                    return;
                }

                if (!this.FrameWorkExtend)
                {
                    this.FrameWorkExtend = true;
                }

                this.tvalidator = true;
                this.LoadBaseReference(Properties.Settings.Default.jQuery_Validator_Name, Properties.Settings.Default.jQuery_Validator_Url);
            }
        }

        /// <summary>
        /// Gets or sets a value indicating whether insert into page datepicker
        /// </summary>
        public bool DatePicker
        {
            get
            {
                return this.tdate;
            }

            set
            {
                if (!value)
                {
                    return;
                }

                if (!this.UiFrameWork)
                {
                    this.UiFrameWork = true;
                }

                this.tdate = true;
                this.LoadBaseReference(Properties.Settings.Default.jQuery_DatePicker_Name, Properties.Settings.Default.jQuery_DatePicker_Url);
            }
        }

        /// <summary>
        /// Gets or sets a value indicating whether insert into page bgframe
        /// </summary>
        public bool BgFrame
        {
            get
            {
                return this.tbg;
            }

            set
            {
                if (!value)
                {
                    return;
                }

                this.tbg = true;
                this.LoadBaseReference(Properties.Settings.Default.jQuery_BgFrame_Name, Properties.Settings.Default.jQuery_BgFrame_Url);
            }
        }

        /// <summary>
        /// Gets or sets a value indicating whether insert into page resizable
        /// </summary>
        public bool Resizable
        {
            get
            {
                return this.tres;
            }

            set
            {
                if (!value)
                {
                    return;
                }

                if (!this.UiFrameWork)
                {
                    this.UiFrameWork = true;
                }

                this.tres = true;
                this.LoadBaseReference(Properties.Settings.Default.jQuery_Resizable_Name, Properties.Settings.Default.jQuery_Resizable_Url);
            }
        }

        /// <summary>
        /// Gets or sets a value indicating whether insert into page dialog
        /// </summary>
        public bool Dialog
        {
            get
            {
                return this.tdia;
            }

            set
            {
                if (!value)
                {
                    return;
                }

                if (!this.UiFrameWork)
                {
                    this.UiFrameWork = true;
                }

                this.tdia = true;
                this.LoadBaseReference(Properties.Settings.Default.jQuery_Dialog_Name, Properties.Settings.Default.jQuery_Dialog_Url);
            }
        }

        /// <summary>
        /// Gets or sets a value indicating whether insert into page Droppable
        /// </summary>
        public bool Droppable
        {
            get
            {
                return this.tdrop;
            }

            set
            {
                if (!value)
                {
                    return;
                }

                if (!this.UiFrameWork)
                {
                    this.UiFrameWork = true;
                }

                this.tdrop = true;
                this.LoadBaseReference(Properties.Settings.Default.jQuery_Drop_Name, Properties.Settings.Default.jQuery_Drop_Url);
            }
        }
        #endregion

        #region Implementation of IManageEffects
        /// <summary>
        /// Gets or sets a value indicating whether insert easing effect script
        /// </summary>
        public bool Easing
        {
            get
            {
                return this.teas;
            }

            set
            {
                if (!value)
                {
                    return;
                }

                this.teas = true;
                this.LoadBaseReference(Properties.Settings.Default.Effects_Easing_Name, Properties.Settings.Default.Effects_Easing_Url);
            }
        }
        #endregion

        #region Property
        /// <summary>
        /// Gets or sets theme for jquery ui component
        /// </summary>
        public Themes Theme
        {
            get
            {
                return this.ttheme;
            }

            set
            {
                this.ttheme = value;
            }
        }

        /// <summary>
        /// Gets or sets a value indicating whether manage culture (languages)
        /// </summary>
        public bool ManageCulture
        {
            get;
            set;
        }

        /// <summary>
        /// Gets list of resource that include into page
        /// </summary>
        [PersistenceMode(PersistenceMode.InnerProperty)]
        public JWebSources WebResources
        {
            get
            {
                if (this.tresources == null)
                {
                    this.tresources = new JWebSources();
                }

                return this.tresources;
            }
        }
        #endregion

        #region Public Static Method
        /// <summary>
        /// Get JQueryManager in current Page
        /// </summary>
        /// <param name="page">page when search jqueryManager</param>
        /// <returns>current <see cref="JQueryManager"/></returns>
        public static JQueryManager GetCurrent(Page page)
        {
            JQueryManager manager = null;

            if (page != null)
            {
                manager = page.Items[typeof(JQueryManager)] as JQueryManager;

                if (manager == null)
                {
                    throw new InvalidOperationException("Could not find a JQueryManager in page");
                }
            }

            return manager;
        }
        #endregion

        #region IjQueryManager
        /// <summary>
        /// Register resource
        /// </summary>
        /// <param name="control">extend control</param>
        public void RegisterResources(JQueryBaseControl control)
        {
            if (!string.IsNullOrEmpty(control.BehaviorID))
            {
                if (this.tbehaviors.FindIndex(b => b.Key.Equals(control.BehaviorID)).Equals(-1))
                {
                    IjExtender ext = control as IjExtender;
                    string clientID = ext != null ? ext.TargetControlClientID : control.ClientID;

                    this.tbehaviors.Add(new KeyValuePair<string, string>(control.BehaviorID, clientID));
                }
            }

            this.RegisterNameSpaces(control.GetClientNameSpace());
            this.RegisterJResource(control.GetResources(), control.GetCssResources());
        }

        /// <summary>
        /// Chenge theme
        /// </summary>
        /// <param name="theme">new theme that apply to page</param>
        public void ChangeTheme(Themes theme)
        {
            Utility.RegisterThemeComponent(this.Page, this.GetType(), theme);
            this.Theme = theme;
        }
        #endregion

        #region Override
        /// <summary>
        /// Register JQueryManager
        /// </summary>
        /// <param name="e">argument of event</param>
        protected override void OnInit(EventArgs e)
        {
            // check if just exist JQueryManager into page
            if (Page.Items.Contains(typeof(JQueryManager)))
            {
                throw new InvalidOperationException("Only one instace of JQueryManager into page");
            }

            Page.Items[typeof(JQueryManager)] = this;

            // load jquery framework
            if (this.FrameWork)
            {
                this.LoadBaseReference(Properties.Settings.Default.jQuery_FrameWork_Name, Properties.Settings.Default.jQuery_FrameWork_Url);
                this.LoadBaseReference(Properties.Settings.Default.jQuery_Color_Name, Properties.Settings.Default.jQuery_Color_Url);
                this.LoadBaseReference(Properties.Settings.Default.JsTypes_Name, Properties.Settings.Default.JsTypes_Url);
            }

            // load web service methods
            if (this.WebResources.Count(s => s.Type == JSourceType.webService) > 0)
            {
                this.DotNetService = true;
            }

            // Load Theme
            if (this.Theme != Themes.None)
            {
                Utility.RegisterThemeComponent(this.Page, this.GetType(), this.Theme);
            }

            base.OnInit(e);
        }

        /// <summary>
        /// Register Client Script
        /// </summary>
        /// <param name="e">argument of event</param>
        protected override void OnPreRender(EventArgs e)
        {
            this.RegisterJResource(this.tresources, null);
            this.RegisterBehaviors();

            this.OnLoad(e);
        }

        /// <summary>
        /// Remove render of control
        /// </summary>
        /// <param name="writer">Html Text Writer</param>
        protected override void Render(HtmlTextWriter writer)
        {
            if (DesignMode)
            {
                Literal lt = new Literal { Text = string.Format("jQueryControl - ID : {0} - Type : {1}", this.ID, this.GetType().Name) };
                lt.RenderControl(writer);
            }
        }
        #endregion

        #region Private Method
        /// <summary>
        /// Register Namespace into web page
        /// </summary>
        /// <param name="spaces">list of client namespace</param>
        private void RegisterNameSpaces(IEnumerable<ClientNameSpace> spaces)
        {
            if (spaces != null)
            {
                foreach (ClientNameSpace space in spaces)
                {
                    Utility.RegisterNameSpaces(this.Page, space);
                }
            }
        }

        /// <summary>
        /// Load Base reference
        /// </summary>
        /// <param name="name">name of script</param>
        /// <param name="url">url of script</param>
        private void LoadBaseReference(string name, string url)
        {
            if (this.Page != null)
            {
                Utility.RegisterResource(this.Page, GetType(), new JSource(name, url, JSourceType.javascript, true));
            }
            else
            {
                this.WebResources.Add(new JSource(name, url, JSourceType.javascript, true));
            }
        }

        /// <summary>
        /// Register resource into web page
        /// </summary>
        /// <param name="resources">collection of resource</param>
        /// <param name="images">collection of css image</param>
        private void RegisterJResource(IEnumerable<JSource> resources, IEnumerable<CssImage> images)
        {
            if (resources == null)
            {
                return;
            }

            foreach (JSource source in resources)
            {
                if (!source.IsWebResource && source.Type != JSourceType.css_dynamic)
                {
                    source.Url = ResolveUrl(source.Url);
                }

                Utility.RegisterjSource(Page, GetType(), source, source.Type == JSourceType.css_dynamic ? images.Where(i => i.Name.Equals(source.Name)) : null);
            }
        }

        /// <summary>
        /// Register behaviorid into web page
        /// </summary>
        private void RegisterBehaviors()
        {
            StringBuilder builder = new StringBuilder();

            foreach (KeyValuePair<string, string> behavior in this.tbehaviors)
            {
                builder.AppendFormat("$.addBehavior('{0}','{1}');", behavior.Key, behavior.Value);
            }

            if (builder.Length > 0)
            {
                this.Page.RegisterHeaderControl(string.Format(Properties.Settings.Default.Js_IncludeScript, "create_bahaviors", builder), "create_bahaviors");
            }
        }
        #endregion
    }
}